package com.wontube.smr.conf.dogs;

import com.wontube.core.conf.dogs.FileWatchDog;
import com.wontube.smr.conf.LocalIPList;



/**
 * @author yuechao
 * 
 */
public class LocalIPWatchDog extends FileWatchDog {
	/**
	 * @param filename
	 */
	public LocalIPWatchDog(String confPath) {
		super(confPath);
	}

	/*
	 * @see core.pub.FileWatchdog#doOnChange()
	 */
	@Override
	protected void doOnChange() {
		LocalIPList.IPList.load(super.file);
	}

	@Override
	protected String getFilename() {
		return "iplist.json";
	}
}
